//
//  CycleModel.swift
//  SwiftDemo
//
//  Created by liguoqing on 2022/6/28.
//  Copyright © 2022 guoqing.li. All rights reserved.
//

import UIKit

class CycleModel : NSObject {
    
    @objc var title : String = ""
    
    @objc var pic_url : String = ""
    
    @objc var room : [String : NSObject]? {
        didSet{
            guard let room = room else {return}
            
            anchor = AnchorModel(dic: room)
        }
    }
    
    @objc var anchor : AnchorModel?
    
    // 构造方法
    init(dict : [String : NSObject]) {
        
        super.init()
        
        setValuesForKeys(dict)
    }
    
    override  func setValue(_ value: Any?, forUndefinedKey key: String) {
        
    }
    
}

